<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/3/28
 * Time: 下午3:16
 */

namespace Home\Dao;
use Think\Model\BaseDao;

class VideoDao extends BaseDao{
    protected $_map = array(
        'tme_boss_add'           => 'tme_id',
        'cha_boos_add'           => 'cha_id',
        'sec_boss_add'           => 'sec_id',
        'add_vid_name'           => 'vid_name',
        'add_vid_long'           => 'vid_long',
        'add_file_name'          => 'file_name',
        'add_file_uuid'          => 'vid_uuid',
        'add_vid_order'          => 'order',
        'tme_boss_edit'          => 'tme_id',
        'cha_boos_edit'          => 'cha_id',
        'sec_boss_edit'          => 'sec_id',
        'edit_vid_id'            => 'vid_id',
        'edit_vid_name'          => 'vid_name',
        'edit_vid_long'          => 'vid_long',
        'change_vid_id'          => 'vid_id',
        'change_vid_name'        => 'vid_name',
        'change_vid_long'        => 'vid_long',
        'change_file_name'       => 'file_name',
        'change_file_uuid'       => 'vid_uuid',
    );
    protected $_validate = array(
        array('tme_id','0','请选择教学方案',0,'notequal'),
        array('cha_id','0','请选择章',0,'notequal'),
        array('sec_id','0','请选择节',0,'notequal'),
        array('vid_name','require','视频名称不能为空'),
        array('vid_long','require','视频长度不能为空'),
    );


}